$(document).ready(function () {
    /*Slider setup*/

    slider = $('.bxslider').bxSlider({
        controls: false,
        speed: 1200,
        pager: false
    });
    slider.startAuto();




    Modernizr.load({
        test: Modernizr.csstransforms3d && Modernizr.csstransitions,
        yep: ['http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js', 'assets/js/jquery.hoverfold.js'],
        nope: '',
        callback: function (url, result, key) {

            if (url === 'assets/js/jquery.hoverfold.js') {
                $('.box_wrapper').hoverfold();
            }

        }
    });
    var mapCanvas = document.getElementById('map_canvas');
    var mapOptions = {
        center: new google.maps.LatLng(41.9909821, 21.4358014),
        zoom: 15,
        mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    var myLatlng = new google.maps.LatLng(41.9909821, 21.4358014);

    var map = new google.maps.Map(mapCanvas, mapOptions);
    var marker = new google.maps.Marker({
        position: myLatlng,
        map: map,
        title: 'Hello World!'
    });
    $('.down_box').hover(function (e) {
        $(this).find('.down_box_read_more').fadeToggle();
        $(this).find('.box_overlay').slideToggle(function () {

        });
    });
});